vocab = "\u0000\u0002\u00030123456789"
stoi_table = { c:i for (i, c) in enumerate(list(vocab)) }
itos_table = [c for c in vocab]
def encode(s: str):
    return [stoi_table[c] for c in s]
def decode(ids):
    return ''.join([itos_table[i] for i in ids])